package top.mczhengyi.xyblog.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import top.mczhengyi.xyblog.entity.User;

@Mapper
public interface UserMapper extends BaseMapper<User> {
    @Select("SELECT id, username, password, slat, email, create_time as createTime, baned " +
            "FROM u_user " +
            "WHERE username = #{uname}")
    User selectUserByUname(String uname);
}
